package com.huazi.www.doctor.hu;

import com.huazi.util.SessionUtil;
import com.huazi.www.doctor.hu.dao.DoctorDao;
import com.huazi.www.doctor.hu.service.impl.DoctorServiceImpl;
import org.apache.ibatis.session.SqlSession;

public class Test {

    public static void main(String[] args) {
        SqlSession session = SessionUtil.getSession();
        DoctorDao mapper = session.getMapper(DoctorDao.class);
        int i = mapper.selDiCount(60001);
        System.out.println(i);

        DoctorServiceImpl d=new DoctorServiceImpl();
        d.selCt(60001).forEach(System.out::println);

        d.list().forEach(System.out::println);

    }
}
